package com.xhblogs.book.service.impl;

import com.xhblogs.book.mapper.RegisterMapper;
import com.xhblogs.book.pojo.User;
import com.xhblogs.book.service.RegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RegisterServiceImpl implements RegisterService {

    @Autowired
    private RegisterMapper registerMapper;

    @Override
    public int register(String username, String password, String email) {
        return registerMapper.register(username, password, email);
    }
}
